//
//  ZYNewPlatform.m
//  DesignMode
//
//  Created by wangzhipan on 2024/9/20.
//

#import "ZYNewPlatform.h"

@implementation ZYPCPlatform
- (instancetype)initWithOperation:(id<INewOperation>)operation
{
    if (self = [super init]) {
        self.operation = operation;
    }
    return self;
}

- (void)login
{
    [self.operation connect];
}
- (void)sendMessage:(NSString *)message
{
    [self.operation playSound];
    [self.operation writeText];
}
- (void)sendPicture:(UIImage *)image
{
    [self.operation playSound];
    [self.operation drawShape];
}
@end


@implementation ZYMobilePlatform
- (instancetype)initWithOperation:(id<INewOperation>)operation
{
    if (self = [super init]) {
        self.operation = operation;
    }
    return self;
}

- (void)login
{
    [self.operation connect];
}
- (void)sendMessage:(NSString *)message
{
    [self.operation playSound];
    [self.operation writeText];
}
- (void)sendPicture:(UIImage *)image
{
    [self.operation playSound];
    [self.operation drawShape];
}
@end

@implementation ZYPCOperation
- (void)connect
{
    
}
- (void)playSound
{
    
}
- (void)drawShape
{
    
}
- (void)writeText
{
    
}
@end


@implementation ZYMobileOperation
- (void)connect
{
    
}
- (void)playSound
{
    
}
- (void)drawShape
{
    
}
- (void)writeText
{
    
}
@end


